﻿
using Sustainalytics.ESGRatings.Primitives.Exceptions;

namespace Sustainalytics.ESGRatings.BusinessLogic.Computing.Exceptions
{
    using System;

    public class ESGComputeException : ComputeException
    {
        public ESGComputeException(string message, ESGException innerException)
            : base(message, innerException)
        {
            if (innerException == null)
            {
                throw new ArgumentNullException("innerException");
            }
        }

        public ESGException InnerESGException
        {
            get
            {
                return (ESGException)InnerException;
            }
        }
    }
}